package com.yanfan.zutai.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * mqtt上报日志对象 b_mqtt_message
 *
 * @author ruoyi
 * @date 2021-08-28
 */
@Data
public class BMqttMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id唯一标识
     */
    private Long id;

    /**
     * 上报时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date reporteTime;

    /**
     * 主题
     */
    @Excel(name = "主题")
    private String topic;

    /**
     * 服务质量
     */
    @Excel(name = "服务质量")
    private Integer qos;
    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String message;
    /**
     * 消息处理时间
     */
    @Excel(name = "消息处理时间")
    private String timeInterval;
}
